package com.it;

public class BreakDemo {
    public static void main(String[] args) {
        //break和if一般和搭配使用
        for (int i = 0; i < 10; i++) {
            if(i==5){
                break;
            }
            System.out.println("hello world");
        }
    }
}
